package com.mewp.permissions.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author mewp
 * @version 1.0
 * @date 2023/7/28 11:28
 */
@ApiModel(description = "分配角色")
@Data
@Valid
public class AssginRoleVO {
    @ApiModelProperty(value = "用户id")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @ApiModelProperty(value = "角色id列表")
    @NotNull(message = "角色列表不能为空")
    @Size(min = 1, message = "角色列表至少要有一个角色Id")
    private List<Long> roleIdList;
}
